import org.eclipse.jface.dialogs.MessageDialog

def expando = new groovy.util.Expando()

// just opens a view
expando.run = {action ->
	expando.workbenchWindow.getActivePage().showView("org.eclipse.soc.scripting.views.DemoView")
}

expando.init = { window ->
	expando.workbenchWindow = window	
}


expando.selectionChanged = {action, selection ->
	expando.selection = selection
}

expando.dispose = { }

expando